import Request from "../../core";
// 获取门店列表
export const getShops = (data) => {
  return Request.post("/customerShop/anon/getShops", data, {
    isLoading: false,
  });
};
// 获取门店详情
export const getShopDetail = (data) => {
  return Request.get("/customerShop/anon/getShopDetail", data, {
    isLoading: false,
  });
};
// 获取商家资质
export const getBusinessLicense = (data) => {
  return Request.get("/customerShop/anon/getBusinessLicense", data, {
    isLoading: false,
  });
};
// 获取门店地区信息
export const getShopArea = (data) => {
  return Request.get("/customerShop/anon/getShopArea", data, {
    isLoading: false,
  });
};
// 获取商户门店列表
export const getShopsByPubBusinessId = (data) => {
  return Request.post("/customerShop/anon/getShopsByPubBusinessId", data, {
    isLoading: false,
  });
};
// 获取门店详情无loading
export const getShopDetailNoload = (data) => {
  return Request.get("/customerShop/anon/getShopDetail", data, {
    isLoading: false,
  });
};
// 获取储值配置
export const getStoredBalanceConfig = (data) => {
  return Request.get("/balanceApp/phone/getStoredBalanceConfig", data, {
    isLoading: false,
  });
};
// 创建储值订单
export const foundStoreValue = (data) => {
  return Request.post("/balanceApp/phone/recharge", data, {
    isLoading: false,
  });
};
// 成为公域用户
export const userJoinPubDomainBusinessUser = (data) => {
  return Request.post(
    "/pubDomainApp/pubDomainCustomer/userJoinPubDomainBusinessUser",
    data,
    {
      isLoading: false,
    }
  );
};
// 成为公域用户
export const getIndustry = (data) => {
  return Request.get("/customerShop/anon/getIndustry", data, {
    isLoading: false,
  });
};
// 获取门店配送方式
export const getIndustrys = (data) => {
  return Request.get("/mall/pub/mobile/order/getStoreDeliveryType", data, {
    isLoading: false,
  });
};

export const getQrcodeScan = (data) => {
  return Request.get("/wifi_admin/table/qrcodeScan", data, {
    isLoading: false,
  });
};
